import React, { useState } from 'react';
import Radio from '../../Radio';

const App: React.FC = () => {
  const [value, setValue] = useState('a');

  const onChange = (e: any) => {
    setValue(e.target.value);
  };

  return (
    <Radio.Group onChange={onChange} value={value}>
      <Radio.Button value="a">Hangzhou</Radio.Button>
      <Radio.Button value="b">Shanghai</Radio.Button>
      <Radio.Button value="c">Beijing</Radio.Button>
      <Radio.Button value="d">Chengdu</Radio.Button>
    </Radio.Group>
  );
};

export default App; 